package ld.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private Integer uid;

    private String username;

    private int balance;

    public User(String username, int balance) {
        this.username = username;
        this.balance = balance;
    }

    public User(Integer uid, int balance) {
        this.uid = uid;
        this.balance = balance;
    }
}